{extend name="base" /}
<!-- page specific plugin styles -->
{block name="inline-styles"}
{/block}
<!-- PAGE CONTENT BEGINS -->
{block name="content"}
<div class="page js_show">
    <div class="page__bd" id="ajaxForm">
        
        <div class="weui-panel">
            <div class="weui-panel__hd weui-flex">
                <div class="weui-cell__bd" style="color: #333"><i class="fa fa-pie-chart"></i> 总资产(元)</div>
                <div class="weui-cell__ft" style="color: #000;" id="zong">6000.00</div>
            </div>
            <div class="weui-panel__bd">
                <div class="weui-wepay-details">
                    <div class="weui-wepay-details__bd">
                        <div class="weui-wepay-detail">
                            <div class="weui-wepay-detail__bd weui-wepay-color-lightblue">可提取金额（元）</div>
                            <div class="weui-wepay-detail__ft" id="ketiqu">3000.00</div>
                        </div>
                        <div class="weui-wepay-detail">
                            <div class="weui-wepay-detail__bd weui-wepay-color-red">不可提取金额（元）</div>
                            <div class="weui-wepay-detail__ft" id="buketiqu">3000.00</div>
                        </div>
                        <div class="weui-wepay-detail">
                            <div class="weui-wepay-detail__bd weui-wepay-color-orange">被冻结金额（元）</div>
                            <div class="weui-wepay-detail__ft" id="dongjie">3000.00</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="weui-panel__ft weui-cells" style="text-align: center;">
                <div class="weui-cell">
                    <a class="weui-navbar__item weui-wepay-color-green" href="{:url('Index/recharge')}"><i class="fa fa-hourglass-end"></i> 充值</a>
                    <a class="weui-navbar__item weui-wepay-color-lightblue" href="{:url('Index/withdraw')}"><i class="fa fa-hourglass"></i> 提现</a>
                </div>
            </div>
        </div>

        <div class="weui-panel">
            <div class="weui-panel__bd">
                <div class="weui-flex">
                    <div class="weui-navbar__item">
                        <a href="/mobile/index/recharge_list.html">
	                        <div class="weui-media-box weui-media-box_text">
	                            <h4 class="weui-media-box__title" style="font-size: 12px; color: #333">申请充值总金额（元）</h4>
	                            <p class="weui-media-box__desc" id="chongzhi"> 10000.00</p>
	                        </div>
                        </a>
                    </div>
                    <div class="weui-navbar__item">
                        <a href="/mobile/index/withdraw_list.html">
	                        <div class="weui-media-box weui-media-box_text">
	                            <h4 class="weui-media-box__title" style="font-size: 12px; color: #333">申请提现总金额（元）</h4>
	                            <p class="weui-media-box__desc" id="tixian"> 10000.00</p>
	                        </div>
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <div class="weui-panel">
            <div class="weui-panel__bd">
                <div class="weui-flex">
                    <div class="weui-navbar__item">
                        <div class="weui-media-box weui-media-box_text">
                            <h4 class="weui-media-box__title" style="font-size: 12px; color: #333">历史总流入资金</h4>
                            <p class="weui-media-box__desc" id="zongliuru"> 10000.00</p>
                        </div>
                    </div>
                    <div class="weui-navbar__item">
                        <div class="weui-media-box weui-media-box_text">
                            <h4 class="weui-media-box__title" style="font-size: 12px; color: #333">历史总流出资金</h4>
                            <p class="weui-media-box__desc" id="zongliuchu"> 10000.00</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
    
    </div>
    <div class="page__ft">
        <div class="weui-footer weui-footer_fixed-bottom">
            <p class="weui-footer__links">
                <a href="javascript:void(0);" class="weui-footer__link">米粒生活</a>
            </p>
            <p class="weui-footer__text">Copyright © 2008-2018 mlilife.com</p>
        </div>
    </div>
</div>
{/block}
<!-- PAGE CONTENT ENDS -->
<!-- inline scripts related to this page -->
{block name="related-scripts"}
<script type="text/javascript">
    $.ajax({
        url: '/api/v1/account/index',
        type: 'GET',
        dataType: 'json',
    })
    .done(function(json) {
        console.log("success");
        initPageHTML("ajaxForm",json.data);
    })
    .fail(function() {
        console.log("error");
    })
    .always(function() {
        console.log("complete");
    });
    


//重置浏览器回退链接
browserBack("home.html");
</script>
{/block}